<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="js/axios-0.18.0.js"></script>
<script >
    //1.get
    axios({
        method:"get",
        url:"http://localhost:8080/ajax/AxiosServlet?username=zhangshan"
    }).then(function (res){
        alert(res.data);
    })

</script>


</body>
</html>